package com.yonyou.pmclouds.organization.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;


@Data
@Table(name = "pm_organdrole")
public class OrgAndRoleVO extends SuperVO {

    @Id
    private String pkOrgAndRole;

    private String pkOrganization; //组织
    private String pkRole;         //租户下的角色
    private String pkTenant;
    private String pkSrc;            //来源主键(NC)

    private String pkRoleDistribute;     //分配的角色列表(主表)主键

    private String isTenant;  //是否分配给了租户  'Y'/'N'

    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    @Transient
    private Boolean isDistributed;  //true-分配，false-取消分配

}
